package com.kaka.service.serviceimpl;

import com.kaka.mapper.SysLogMapper;
import com.kaka.pojo.SysLog;
import com.kaka.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("sysLogService")
public class SysLogServiceImpl implements SysLogService {

    @Autowired
    SysLogMapper sysLogMapper;

    @Override
    public int add(SysLog syslog) {
        return sysLogMapper.insert(syslog);
    }

    @Override
    public List<SysLog> findAll() {
        return sysLogMapper.selectAll();
    }

    @Override
    public List<SysLog> findLike(String username, String url, Long executionTime) {
        return sysLogMapper.selectLike(username,url,executionTime);
    }
}